package com.menny.android.ongoingweather;

/** Useful Utility in working with temperatures. (conversions).
 * http://www.anddev.org/android_weather_forecast_-_google_weather_api_-_full_source-t361.html
*/
public class WeatherUtils {

     public static int fahrenheitToCelsius(int tFahrenheit) {
          return (int) ((5.0f / 9.0f) * (tFahrenheit - 32));
     }

     public static int celsiusToFahrenheit(int tCelsius) {
          return (int) ((9.0f / 5.0f) * tCelsius + 32);
     }
}